{template 'header_help'}




<div class="layout">
        <div class="path">
            <a href="{$MODULE[1][linkurl]}">首页</a> <span>&gt;</span> <a href="{$EXT[guestbook_url]}">留言反馈</a>
        </div>
</div>
<!-- main -->
<div class="layout">
<div class="container clf" style="width:auto">
<div class="main-mod">
<div class="content-hd">网站反馈留言</div>
<div class="form-wrap">
<form action="{$EXT[guestbook_url]}index.php" method="post" class="form nice-validator n-default" onsubmit="return check();">
	<div class="row">
		<span class="lab"><em>*</em>留言类型：</span>
			<select name="post[type]" id="type">
				<option value="">请选择</option>
				{loop $TYPE $k $v}
				<option value="{$v}">{$v}</option>
				{/loop}
			</select>
	</div>
	<div>

		<textarea name="post[content]" placeholder="请输入您的需要、意见和建议" class="textarea" id="content" maxlength="300">{$content}</textarea>
		<span class="msg-box n-right"><span class="msg-wrap n-error"><span class="n-msg" id="dcontent"></span>
		</span></span>
	</div>

	<div class="row">请留下你的联系方式，方便客服人员跟你联系。</div>

		<input type="radio" name="my" value="1" id="my_1" onclick="Ds('gb_contact');"/> <label for="my_1">需要</label>&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="radio" name="my" value="0" id="my_0" checked onclick="Dh('gb_contact');"/> <label for="my_0">不需要</label>
			
		<div id="gb_contact" style="display:none;">
			<div class="row">
			<span class="lab"><em>*</em>姓名：</span>

			<input type="text" class="text" id="truename" name="post[truename]" placeholder="请输入真实姓名">&nbsp;
			<input type="checkbox" name="post[hidden]" value="1" id="hidden" checked/><label for="hidden" title="选择匿名后,联系人姓名仅网站工作人员可见"> 匿名留言</label><span class="msg-box n-right"><span class="msg-wrap n-error"><span class="n-msg" id="dtruename"></span></span></span>
			</div>
			<div class="row">
			<span class="lab">电话：</span>
			 
			<input type="text" class="text" value="{$telephone}" name="post[telephone]" id="telephone" placeholder="请输入您的电话"><span id="dtelephone" class="f_red n-msg"></span>
			</div>
			<div class="row">
			<span class="lab"><em>*</em>邮箱：</span>		  
			<input type="text" class="text" id="email" name="post[email]" placeholder="请输入您的邮箱" value="{$email}" >
			<span class="msg-box n-right"><span class="msg-wrap n-error"><span class="n-msg" id="demail"></span></span></span>
			</div>
			{if $DT[im_qq]}
			<div class="row">
			<span class="lab">QQ：</span>
			<input type="text" class="text" name="post[qq]" placeholder="请输入您的QQ号码">
			</div>
			{/if}

			{if $DT[im_ali]}
			<div class="row">
			<span class="lab">阿里旺旺：</span>
			<input type="text" class="text" name="post[ali]" placeholder="请输入您的阿里旺旺">
			</div>
			{/if}

			{if $DT[im_msn]}
			<div class="row">
			<span class="lab">MSN：</span>
			<input type="text" class="text" name="post[msn]" placeholder="请输入您的MSN号码">
			</div>
			{/if}
 
		 	{if $DT[im_skype]}
			<div class="row">
			<span class="lab">Skype：</span>
			<input type="text" class="text" name="post[skype]" placeholder="请输入您的Skype号码">
			</div>
			{/if}
		 
		</div>
			

			{if $MOD[guestbook_captcha]}
			<div class="row">
				<span class="lab">验证码：</span>
				{template 'captcha', 'chip'}
				<span id="dcaptcha" class="f_red"></span>
			</div>

			{/if}

			<div class="row">
				<input type="submit" name="submit" class="submit btn-blue" value="提交">&nbsp;
				<input type="reset" class="submit btn-blue" value=" 重写 "/>
			</div>
			</form>
		</div>



			{if $lists}
			<div class="b10">&nbsp;</div><div class="b10">&nbsp;</div>
			<div class="fsearch">
			<form action="{$EXT[guestbook_url]}index.php">
			<strong>关键词：</strong>
			<input type="text" size="50" name="kw" value="{$kw}"/> 
			<input type="submit" class="btn-blue" value="搜索"/>
			<input type="button"  class="btn-blue" value="重置" onclick="Go('{$EXT[guestbook_url]}');"/>
			</form>
			</div>
			{loop $lists $k $v}
			<div class="b10">&nbsp;</div><div class="b10">&nbsp;</div>
			<table class="gust_tb" width="100%" cellpadding="8" cellspacing="1" bgcolor="#E3EEF5">
			<tr>
			<td align="right" bgcolor="#F1F7FC" width="200">{if $v[hidden]}匿名{else}{$v[truename]}{/if} <span class="px11">{$v[adddate]}</span> 提问：&nbsp;&nbsp;</td>
			<td bgcolor="#FFFFFF" class="lh18">{$v[content]}</td>
			</tr>
			{if $v[reply]}
			<tr>
			<td align="right" bgcolor="#F1F7FC">网站 <span class="px11">{$v[editdate]}</span> 回复：&nbsp;&nbsp;</td>
			<td bgcolor="#FFFFFF" style="color:#D9251D;">{$v[reply]}</td>
			</tr>
			{/if}
			</table>
			{/loop}		
			{if $pages}<div class="pages">{$pages}</div>{/if}
			{/if}


	</div>

			<div class="side-mod">
				<div class="service-item si-qq">
					<div class="si-hd">在线客服</div>
					<div class="si-con">
					<a href="javascript:void(0)" class="btn-blue" onclick="easemobIM()">点击咨询</a>
					</div>
					<div class="si-con mt-10 ft-gray">
					<p>解决用户问题
					<br>在线时间：周一至周五：09:00-18:00
					<br>其他时间请留言</p>
					</div>
				</div>
				<div class="service-item si-email">
					<div class="si-hd">客服邮箱</div>
					<div class="si-con">
					<p class="ft-gray">845882161@qq.com
					<br>服务时间：7*24小时均可
					<br>客服收到邮件会在1个工作日和你回复</p>
					</div>
				</div>
			</div>
		</div>
</div>

{load('guest.js')}
<script type="text/javascript">
function check() {
	var l;
	var f;
	f = 'content';
	l = Dd(f).value.length;
	if(l < 5 || l > 1000) {
		Dmsg('内容应为5-1000字，当前已输入'+l+'字', f);
		return false;
	}
	{if $MOD[guestbook_captcha]}
	f = 'captcha';
	l = Dd(f).value;
	if(!is_captcha(l)) {
		Dmsg('请填写验证码', f);
		return false;
	}
	{/if}
	return true;
}
{if $action == 'report'}
$('#type').val('不良信息');
Dd('content').value = Dd('content').value+"\n-------------------------------\n举报理由：\n";
{/if}
</script>
{template 'footer-mini'}